package com.vader.admin.client;

import com.vader.admin.client.impl.DistributeIdClientFallback;
import com.vader.common.entity.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Vader
 * @date 2021/10/6
 **/
@FeignClient(value = "taosiphy-uid-generator-center", fallbackFactory = DistributeIdClientFallback.class)
@RequestMapping(path = "/distributeId")
public interface DistributeIdClient {

    @GetMapping("/getId")
    public CommonResponse<Long> getId();
}
